package com.bawei.home.api

import com.bawei.common.api.BaseApiServer
import com.bawei.common.entity.CommendEntity
import com.bawei.common.entity.SimpleVideoEntity
import com.bawei.home.SimpleTypeEntity
import com.bawei.network.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Author: Jason Zhang
 * Date: 2025/1/16
 * Desc: 首页页面接口
 */
interface HomeServerApi: BaseApiServer {

    //获取视频分类
    @GET("/videotype/getSimpleType")
    suspend fun getSimpleTypes(): BaseResponse<List<SimpleTypeEntity>>

    //获取分类视频
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId: String, @Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<SimpleVideoEntity>>

    //获取推荐视频
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<SimpleVideoEntity>>

    //获取视频评论
    @GET("/comment/getCommentByUserId")
    suspend fun getVideoCommends(@Query("datatype") dataType: Int, @Query("itemid") itemId:String): BaseResponse<List<CommendEntity>>





}